import numpy as np
from ArithmeticOp.mldivide import mldivide
# 输入系数矩阵A
A = np.array([[1,2,3],[4, 5, 6],[7,8,9]])

# 输入常数向量b
b = np.array([[1],[2],[3]])

try:
    # 求解线性方程组
    x = mldivide(A, b, False)
    
    # 输出解向量
    print("系数矩阵A：")
    print(A)
    print("常数向量b：")
    print(b)
    print("解向量x：")
    print(x)
except:
    print("输入有误，请输入正确的矩阵和向量格式！")